package com.ruoyi.nysjwh.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.nysjwh.mapper.TbNysjwhNysjlrMapper;
import com.ruoyi.nysjwh.domain.TbNysjwhNysjlr;
import com.ruoyi.nysjwh.service.ITbNysjwhNysjlrService;

/**
 * 能源数据录入Service业务层处理
 * 
 * @author hc
 * @date 2023-11-11
 */
@Service
public class TbNysjwhNysjlrServiceImpl implements ITbNysjwhNysjlrService 
{
    @Autowired
    private TbNysjwhNysjlrMapper tbNysjwhNysjlrMapper;

    /**
     * 查询能源数据录入
     * 
     * @param id 能源数据录入主键
     * @return 能源数据录入
     */
    @Override
    public TbNysjwhNysjlr selectTbNysjwhNysjlrById(Long id)
    {
        return tbNysjwhNysjlrMapper.selectTbNysjwhNysjlrById(id);
    }

    /**
     * 查询能源数据录入列表
     * 
     * @param tbNysjwhNysjlr 能源数据录入
     * @return 能源数据录入
     */
    @Override
    public List<TbNysjwhNysjlr> selectTbNysjwhNysjlrList(TbNysjwhNysjlr tbNysjwhNysjlr)
    {
        return tbNysjwhNysjlrMapper.selectTbNysjwhNysjlrList(tbNysjwhNysjlr);
    }

    /**
     * 新增能源数据录入
     * 
     * @param tbNysjwhNysjlr 能源数据录入
     * @return 结果
     */
    @Override
    public int insertTbNysjwhNysjlr(TbNysjwhNysjlr tbNysjwhNysjlr)
    {
        return tbNysjwhNysjlrMapper.insertTbNysjwhNysjlr(tbNysjwhNysjlr);
    }

    /**
     * 修改能源数据录入
     * 
     * @param tbNysjwhNysjlr 能源数据录入
     * @return 结果
     */
    @Override
    public int updateTbNysjwhNysjlr(TbNysjwhNysjlr tbNysjwhNysjlr)
    {
        return tbNysjwhNysjlrMapper.updateTbNysjwhNysjlr(tbNysjwhNysjlr);
    }

    /**
     * 批量删除能源数据录入
     * 
     * @param ids 需要删除的能源数据录入主键
     * @return 结果
     */
    @Override
    public int deleteTbNysjwhNysjlrByIds(Long[] ids)
    {
        return tbNysjwhNysjlrMapper.deleteTbNysjwhNysjlrByIds(ids);
    }

    /**
     * 删除能源数据录入信息
     * 
     * @param id 能源数据录入主键
     * @return 结果
     */
    @Override
    public int deleteTbNysjwhNysjlrById(Long id)
    {
        return tbNysjwhNysjlrMapper.deleteTbNysjwhNysjlrById(id);
    }
}
